package com.bistu.xiong.factory.model.api.account;

import com.bistu.xiong.factory.model.db.User;

import java.util.Date;
import java.util.Map;

/**
 * Created by XiongXiaoJun on 2017/12/15.
 * 注册成功之后返回的信息
 */

public class AccountRspModel {
    private String userId;

    private String username;

    private String password;

    private Integer sex;

    private String token;

    private String phone;

    private String portrait;

    private String description;

    private Date createTime;

    private Date updateTime;

    public AccountRspModel(String userId, String username, String password, Integer sex,String token , String phone, String portrait, String description, Date createTime, Date updateTime) {
        this.userId = userId;
        this.username = username;
        this.password = password;
        this.sex = sex;
        this.token = token;
        this.phone = phone;
        this.portrait = portrait;
        this.description = description;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getSex() {
        return sex==null?new Integer(0):sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPortrait() {
        return portrait;
    }

    public void setPortrait(String portrait) {
        this.portrait = portrait;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }
}
